package com.rushb.rushbproduct.constont;

public enum ErrorCode {

    /**
     * A--业务逻辑错误
     * B--系统级别错误
     * C--第三方调用错误
     */
    A0001("1001","用户端错误","系统错误，请稍后再试"),
    A0002("1002","缺少请求参数","系统错误，请稍后再试"),
    A0003("1003","json数据格式不正确","系统错误，请稍后再试"),
    A0004("1004","参数验证失败","系统错误，请稍后再试"),
    A0005("1005","参数绑定异常","系统错误，请稍后再试"),
    A0006("1006","请求方法不支持","系统错误，请稍后再试"),
    A0007("1007","id不能为空","系统错误，请稍后再试"),
    A0008("1007","id重复","系统错误，请稍后再试"),
    A0404("1404", "对象资源未找到", "系统错误，请稍后再试"),
    B0001("2001","系统执行错误","系统错误，请稍后再试"),
    C0001("3001","第三方错误","系统错误，请稍后再试"),
    D0001("4001","登录验证失败","登录验证失败，请稍后再试"),
    D0002("4002","企微登录验证失败","企微登录验证失败，请稍后再试");
    private String errorCode;
    private String errorMsg;
    private String tips;

    ErrorCode(String errorCode, String errorMsg, String tips){
        this.errorCode=errorCode;
        this.errorMsg=errorMsg;
        this.tips=tips;
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }
}
